/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Objects;

import Tools.Tools;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author Personal
 */
public class Archguip_pro {
    private int orden;
    private String codigo;
    private String unidad;     
    private String descrip;     
    private int icantdesp;
    private int icantfalt;
    private String uniddesp;
    private String scantdesp;     
    private String scantfalt;     
    private double pesokgs;
    private String numguia;     
    private String numfalt;     
    private int unidfalt;     
    
    /**
     * 
     */
    public Archguip_pro(){
        
    }

    /**
     * 
     * @param rs 
     */
    public Archguip_pro(ResultSet rs){
        try{
            orden           = rs.getInt(1);
            codigo          = rs.getString(2);
            unidad          = rs.getString(3);
            descrip         = rs.getString(4);
            icantdesp       = rs.getInt(5);
            icantfalt       = rs.getInt(6);
            uniddesp        = rs.getString(7);
            scantdesp       = rs.getString(8);
            scantfalt       = rs.getString(9);
            pesokgs         = rs.getDouble(10);
            numguia         = rs.getString(11);
            
        }catch(SQLException e){
            Tools.getErrorMessage(e.getStackTrace(),e.getMessage());
        }
    }

    /**
     * @return the orden
     */
    public int getOrden() {
        return orden;
    }

    /**
     * @param orden the orden to set
     */
    public void setOrden(int orden) {
        this.orden = orden;
    }

    /**
     * @return the codigo
     */
    public String getCodigo() {
        return codigo;
    }

    /**
     * @param codigo the codigo to set
     */
    public void setCodigo(String codigo) {
        this.codigo = codigo;
    }

    /**
     * @return the unidad
     */
    public String getUnidad() {
        return unidad;
    }

    /**
     * @param unidad the unidad to set
     */
    public void setUnidad(String unidad) {
        this.unidad = unidad;
    }

    /**
     * @return the descrip
     */
    public String getDescrip() {
        return descrip;
    }

    /**
     * @param descrip the descrip to set
     */
    public void setDescrip(String descrip) {
        this.descrip = descrip;
    }

    /**
     * @return the icantdesp
     */
    public int getIcantdesp() {
        return icantdesp;
    }

    /**
     * @param icantdesp the icantdesp to set
     */
    public void setIcantdesp(int icantdesp) {
        this.icantdesp = icantdesp;
    }

    /**
     * @return the icantfalt
     */
    public int getIcantfalt() {
        return icantfalt;
    }

    /**
     * @param icantfalt the icantfalt to set
     */
    public void setIcantfalt(int icantfalt) {
        this.icantfalt = icantfalt;
    }

    /**
     * @return the uniddesp
     */
    public String getUniddesp() {
        return uniddesp;
    }

    /**
     * @param uniddesp the uniddesp to set
     */
    public void setUniddesp(String uniddesp) {
        this.uniddesp = uniddesp;
    }

    /**
     * @return the scantdesp
     */
    public String getScantdesp() {
        return scantdesp;
    }

    /**
     * @param scantdesp the scantdesp to set
     */
    public void setScantdesp(String scantdesp) {
        this.scantdesp = scantdesp;
    }

    /**
     * @return the scantfalt
     */
    public String getScantfalt() {
        return scantfalt;
    }

    /**
     * @param scantfalt the scantfalt to set
     */
    public void setScantfalt(String scantfalt) {
        this.scantfalt = scantfalt;
    }

    /**
     * @return the pesokgs
     */
    public double getPesokgs() {
        return pesokgs;
    }

    /**
     * @param pesokgs the pesokgs to set
     */
    public void setPesokgs(double pesokgs) {
        this.pesokgs = pesokgs;
    }

    /**
     * @return the numguia
     */
    public String getNumguia() {
        return numguia;
    }

    /**
     * @param numguia the numguia to set
     */
    public void setNumguia(String numguia) {
        this.numguia = numguia;
    }

    /**
     * @return the numfalt
     */
    public String getNumfalt() {
        return numfalt;
    }

    /**
     * @param numfalt the numfalt to set
     */
    public void setNumfalt(String numfalt) {
        this.numfalt = numfalt;
    }

    /**
     * @return the unidfalt
     */
    public int getUnidfalt() {
        return unidfalt;
    }

    /**
     * @param unidfalt the unidfalt to set
     */
    public void setUnidfalt(int unidfalt) {
        this.unidfalt = unidfalt;
    }

    
}
